home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
tjgold.zip
/
INSTALL.003
/
DEMFS5.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-29
|
2KB
|
53 lines
{--------------------------------------------------------------------------}
{ Product: TechnoJock's Turbo Toolkit GOLD }
{ }
{ TTT GOLD - DEMO PROGRAM }
{ }
{ Copyright 1986-1995 TechnoJock Software, Inc. }
{ All Rights Reserved }
{ Restricted by License }
{--------------------------------------------------------------------------}
{Description: DEMFS5.PAS
Illustrates the screen writing functions in the GoldFast
unit, and the impact of local window coordinates.
}
Program DEMFS5;
{$I GOLDFLAG.INC}
uses DOS,CRT, GoldMisc, GoldAttr, GoldFast;
var
WasOn: boolean;
begin
{$IFOPT D+}
HeapRecord;
{$ENDIF}
clrscr;
FillScreen(1,1,80,25,WhiteOnBlack,' ');
WriteAt(1,1,WhiteOnBlack,'* 1,1 (original)');
WriteAt(5,5,WhiteOnBlack,'* 5,5 (original)');
Box(19,7,61,16,30,1); { yellow,blue }
SetWindow(20,8,60,15);
FillScreen(1,1,80,25,WhiteOnBlue,' ');
WriteAt(1,1,LightCyanOnBlack,'* 1,1 (in window)');
WriteAt(5,5,LightCyanOnBlack,'* 5,5 (in window)');
WriteAt(20,7,LightCyanOnBlack,'This text is too long to fit!');
GotoXY(1,2);
TextColor(LightCyan);
System.Writeln('Written with Turbo''s Writeln');
SetWinIgnore(true); {disable the window}
WriteRight(80,23,WhiteOnBlack,'Written with WindowOff');
SetWinIgnore(false); {disable the window}
WriteAt(1,8,LightCyanOnBlack,'Window enabled again');
ResetWindow;
repeat until keypressed;
GotoXY(1,25);
{$IFOPT D+}
HeapCheck;
{$ENDIF}
end.